<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>show2</title>
</head>
<body>
    User:<span th:text="${user}">用户信息</span>
    name:<span th:text="${user.name}">name</span>
    age:<span th:text="${user.age}">age</span>
    fired:<span th:text="${user.friend}">friend</span>
    fired.name:<span th:text="${user.friend.name}">friend.name</span>
    fired.age:<span th:text="${user.friend.age}">friend.age</span>
    <hr/>

    <ul th:object="${user}">
        name:<li th:text="*{name}">name</li>
        age:<li th:text="*{age}">age</li>
    </ul>
</body>
</html>